import request from '@/utils/request'

export const getUserPhoneAPI = (data: { userName: string }) => {
  return request.get('/auth/getUserInfo', { params: data })
}

export const validatePhoneAPI = (data: { phone: string; code: string }) => {
  return request.post('/auth/validatePhone', data)
}

export const forgetPasswordAPI = (data: {
  userName: string
  phone: string
  newPassword: string
}) => {
  return request.post('/auth/forgetPassword', data)
}
